/******************************************************************************
*@file  : main.c
*@brief : This file provides UART Demos
*@ver   : 1.0.0
*@date  : 2022.10.20
******************************************************************************/

#include "app.h" 
volatile uint32_t g_master;

int main(void)
{
    g_master = 0;
    HAL_Init();     
    SystemClock_Config(SYSCLK_180M_SRC_RC64M, RCC_PCLK1_DIV_1, RCC_PCLK2_DIV_1); 
    
    BSP_UART_Init(UART2); 

    BSP_PB_Init();

    printfS("--------------------------------------------------------------------\r\n");
    
    UART1_Init();
    
    printfS("slave sysclk: %u\r\n", HAL_RCC_GetHCLKFreq());
    
    APP_Test();  

    while(1)
    {

    }
}
